<template>
  <div class="footer">
    <div class="container">
      <div class="siteinfo">
        <ul class="c0">
          <h3 class="c1">订单服务</h3>
          <ul>
            <li class="c2"><a class="c3" @click="handlePayType">支付方式</a></li>
            <li class="c2"><a class="c3" @click="handleDelivery">送货政策</a></li>
          </ul>
        </ul>
        <ul class="c0">
          <h3 class="c1">自助服务</h3>
          <ul>
            <li class="c2"><a class="c3" target="_blank" href="http://www.gid-cn.com">公司博客</a></li>
            <li class="c2"><a class="c3" target="_blank" href="http://www.gid-cn.com">公司简介</a></li>
            <li class="c2"><a class="c3" target="_blank" href="http://www.gid-cn.com">公司视频</a></li>
          </ul>
        </ul>
        <ul class="c0">
          <h3 class="c1">友情链接</h3>
          <ul>
            <li class="c2"><a class="c3" target="_blank" href="http://www.gid-cn.com">鑫爵</a></li>
            <li class="c2"><a class="c3" target="_blank" href="http://www.gid-cn.com">集第</a></li>
          </ul>
        </ul>
        <ul class="c0">
          <h3 class="c1">关注我吧</h3>
          <ul>
            <li class="c2"><a class="c3" target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=1286289929&site=qq&menu=yes">腾讯 QQ</a></li>
            <li class="c2"><a class="c3" target="_blank" href="mailto:1286289929@qq.com">官方邮箱</a></li>
          </ul>
        </ul>

        <ul class="c4">
          <li class="tel"><a class="c5" href="http://wpa.qq.com/msgrd?v=3&uin=1286289929&site=qq&menu=yes" target="_blank">1286289929</a></li>
          <li class="time">周一至周日 10:00-23:00</li>
          <li class="online">
            <mall-button text="在线帮助" class="button" @btnClick="handleHelp" />
          </li>
        </ul>
      </div>

      <div class="copyright">
        <h4 class="content-c2">鑫爵贸易 版权所有</h4>
        <ul class="privacy">
          <li class="content-c1"><a href="https://beian.miit.gov.cn" target="_blank">XXX</a></li>
          <li class="content-c1"><a class="content-c0" @click="open1">法律声明</a></li>
          <li class="content-c1"><a class="content-c0" @click="open2">隐私条款</a></li>
        </ul>
      </div>
    </div>
  </div>
</template>
<script>
import MallButton from '@/components/MallButton'

export default {
  components: {
    MallButton
  },
  data() {
    return {
    }
  },
  methods: {
    open1() {
      this.$notify.info({
        title: '法律声明',
        message: '法律声明'
      })
    },
    open2() {
      this.$notify.info({
        title: '隐私条款',
        message: '隐私条款'
      })
    },
    handleHelp() {
      this.$notify({
        title: '离线帮助',
        message: '离线帮助',
        type: 'warning'
      })
    },
    handlePayType() {
      this.$notify.info({
        title: '支付方式',
        message: '支持支付宝、微信等方式'
      })
    },
    handleDelivery() {
      this.$notify({
        title: '送货政策',
        message: '不支持在线下单，请联系销售人员',
        type: 'warning'
      })
    }
  }
}
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
.footer {
  padding: 50px 0 20px;
  border-top: 1px solid #e6e6e6;
  background: #fafafa;
  margin-top: 60px;
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  width: 1220px;
}

.siteinfo {
  height: 100px;
  padding: 50px 0 130px;
  border-bottom: 1px solid #e6e6e6;
  position: relative;
}

.c0 {
  width: 149px;
  line-height: 1;
  float: left;
}

.c1 {
  color: #646464;
  font-size: 12px;
  padding: 0 0 14px;
}

.c2 {
  color: #c3c3c3;
  font-size: 12px;
  padding: 6px 0;
}

.c3 {
  color: #969696;
}

.c4 {
  position: absolute;
  right: 0;
  overflow: hidden;
  line-height: 34px;
}

.tel {
  font-size: 30px;
  line-height: 1;
  color: #646464;
  top: -2px;
  position: relative;
}

.c5 {
  color: #646464;
  right: -70px;
  position: relative;
}

.time {
  margin-top: 5px;
  right: -4px;
  position: relative;
  clear: both;
  width: 241px;
  font-size: 12px;
  line-height: 18px;
  color: #c3c3c3;
  text-align: right;
}

.online {
  clear: both;
  width: 241px;
  font-size: 12px;
  line-height: 18px;
  color: #c3c3c3;
  text-align: right;
}

.button {
  width: 130px;
  height: 34px;
  font-size: 14px;
  color: #5079d9;
  border: 1px solid #dcdcdc;
  margin-top: 8px;
}

.copyright {
  color: #434d55;
  font-size: 12px;
  padding: 40px 0 0;
  display: flex;
  align-items: left;
}

.privacy {
  float: left;
  margin: 0 0 0 12px;
}

.content-c0 {
  color: #5079d9;
  cursor: pointer;
  text-decoration: none;
  &:hover {
    color: #3A5FCD;
  }
}

.content-c1 {
  float: left;
  line-height: 12px;
  padding: 1px 10px 0;
  border-left: 1px solid #ccc;
}

.content-c2 {
  float: left;
  height: 15px;
  line-height: 15px;
  color: #757575;
}

.cop {
  clear: both;
  padding: 10px 0 0;
  height: 15px;
}

.content-c3 {
  margin-right: 20px;
  color: #bdbdbd;
  font-size: 12px;
  height: 12px;
  line-height: 1;
}
</style>
